﻿using Common.Helper;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Extensions.Transient
{
    public static class TransientSetup
    {
        public static void AddTransientSetup(this IServiceCollection services)
        {
            //注册服务
            //services.AddTransient<IJsRoleService, JsRoleService>();
            //services.AddTransient<IJsUserService, JsUserService>();
            //services.AddTransient<ILoginServices, LoginServices>();
            //services.AddTransient<IBaseRepository, BaseRepository>();

            //按程序集注册
            Assemblys.AddAssembly(services, "Service");//批量注册
            Assemblys.AddAssembly(services, "Repository");//批量注册

        }
    }
}
